package com.dmap.admin.controller.rpc;

import com.dmap.admin.service.backgroundv2.UserV2Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * \* User: helei
 * \* Date: 04/05/18
 * \* Description:
 * \
 */
@Api(value = "V2用户管理", description = "background/V2用户管理")
@Controller
@RequestMapping(value = "/rpc/background/pmpd-admin-server/v2/user/")
public class RpcUserV2Controller {
    @Resource
    private UserV2Service userV2Service;

    @ResponseBody
    @ApiOperation(value = "将所有用户登陆错误数置0", notes = "")
    @RequestMapping(value = "update/setAllUserLoginWrongNumZero", method = RequestMethod.GET)
    public int setAllUserLoginWrongNumZero() {
        return userV2Service.setAllUserLoginWrongNumZero();
    }

}